//
//  EPOSSysUsers.m
//  BCGenieEffect
//
//  Created by Ios Entity Generator on 2014-03-04 16:37:33
//  Copyright (c) 2014年 Bartosz Ciechanowski. All rights reserved.
//

#import "EPOSSysUsers.h"

@implementation EPOSSysUsers

+(id) getEPOSSysUsersFromDictionary :(NSDictionary *) dic {
    EPOSSysUsers * sysUsers = [[EPOSSysUsers alloc]init] ;
    sysUsers.Status = [dic objectForKey:@"Status"];
    sysUsers.OwnerOrgCode = [dic objectForKey:@"OwnerOrgCode"];
    sysUsers.OrgCode = [dic objectForKey:@"OrgCode"];
    sysUsers.EntityState = [dic objectForKey:@"EntityState"];
    sysUsers.ID = [dic objectForKey:@"ID"];
    sysUsers.Selected = [dic objectForKey:@"Selected"];
    sysUsers.UserID = [dic objectForKey:@"UserID"];
    sysUsers.UserName = [dic objectForKey:@"UserName"];
    return sysUsers ;
}

+(NSMutableDictionary *) getDictionaryFromEPOSSysUsers :(EPOSSysUsers* ) sysUsers {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:sysUsers.Status forKey:@"Status"];
    [dic setObject:sysUsers.OwnerOrgCode forKey:@"OwnerOrgCode"];
    [dic setObject:sysUsers.OrgCode forKey:@"OrgCode"];
    [dic setObject:sysUsers.EntityState forKey:@"EntityState"];
    [dic setObject:sysUsers.ID forKey:@"ID"];
    [dic setObject:sysUsers.Selected forKey:@"Selected"];
    [dic setObject:sysUsers.UserID forKey:@"UserID"];
    [dic setObject:sysUsers.UserName forKey:@"UserName"];
    return dic ;
}

@end